package com.server.action;

import com.server.core.anno.Controller;
import com.server.core.anno.HttpFilter;
import com.server.core.anno.RequestMapping;
import com.server.core.action.AbstractAction;
import com.server.core.domain.Request;
import com.server.core.domain.Response;
import com.server.core.enums.HttpMethod;
import com.server.core.filter.impl.DefaultFilter;

@Controller
public class DefaultAction extends AbstractAction {

    @RequestMapping(value = "/", method = HttpMethod.GET)
    public String doGet(Request request, Response response) {
        return "redirect:http://localhost:8080/static/canvas/index.html";
    }

    public Object doPost(Request request, Response response) {
        return null;
    }
}
